﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="tableadmin.aspx.cs" Inherits="tableadmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <prt:ShowFooterGridView ID="gvNumberTypes" runat="server" DataSourceID="dsNumberTypes" ShowHeaderWhenEmpty="True" ShowFooterWhenEmpty="True" AutoGenerateColumns="False" DataKeyNames="NumberTypeID">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="NumberTypeID" HeaderText="NumberTypeID" InsertVisible="False" ReadOnly="True" SortExpression="NumberTypeID" />
            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
            <asp:CheckBoxField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
            <asp:CheckBoxField DataField="SMSCapable" HeaderText="SMSCapable" SortExpression="SMSCapable" />
            <asp:CheckBoxField DataField="AlphaPageCapable" HeaderText="AlphaPageCapable" SortExpression="AlphaPageCapable" />
            <asp:CheckBoxField DataField="NumericPageCapable" HeaderText="NumericPageCapable" SortExpression="NumericPageCapable" />
            <asp:CheckBoxField DataField="FaxCapable" HeaderText="FaxCapable" SortExpression="FaxCapable" />
        </Columns>
    </prt:ShowFooterGridView>
    <asp:DetailsView ID="dvNumberTypes" runat="server" Height="50px" Width="125px" 
        DataSourceID="dsNumberTypes" DefaultMode="Insert" AutoGenerateRows="False" 
        DataKeyNames="NumberTypeID">
        <Fields>
            <asp:BoundField DataField="NumberTypeID" HeaderText="NumberTypeID" 
                InsertVisible="False" ReadOnly="True" SortExpression="NumberTypeID" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:CheckBoxField DataField="Phone" HeaderText="Phone" 
                SortExpression="Phone" />
            <asp:CheckBoxField DataField="SMSCapable" HeaderText="SMSCapable" 
                SortExpression="SMSCapable" />
            <asp:CheckBoxField DataField="AlphaPageCapable" HeaderText="AlphaPageCapable" 
                SortExpression="AlphaPageCapable" />
            <asp:CheckBoxField DataField="NumericPageCapable" 
                HeaderText="NumericPageCapable" SortExpression="NumericPageCapable" />
            <asp:CheckBoxField DataField="FaxCapable" HeaderText="FaxCapable" 
                SortExpression="FaxCapable" />
            <asp:CommandField ShowInsertButton="True" />
        </Fields>
    </asp:DetailsView>
    <asp:LinqDataSource ID="dsNumberTypes" runat="server" ContextTypeName="AnsweringServiceDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="NumberTypes">
    </asp:LinqDataSource>
    <br /><br />
    <prt:ShowFooterGridView ID="gvProviders" runat="server" AutoGenerateColumns="False" DataKeyNames="ProviderID" DataSourceID="dsProviders" ShowHeaderWhenEmpty="True" ShowFooterWhenEmpty="True">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="ProviderID" HeaderText="ProviderID" InsertVisible="False" ReadOnly="True" SortExpression="ProviderID" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="SMSEmailAddress" HeaderText="SMSEmailAddress" SortExpression="SMSEmailAddress" />
        </Columns>
    </prt:ShowFooterGridView>
    <asp:DetailsView ID="dvProviders" runat="server" Height="50px" Width="125px" 
        AutoGenerateRows="False" DataKeyNames="ProviderID" DataSourceID="dsProviders" DefaultMode="Insert">
        <Fields>
            <asp:BoundField DataField="ProviderID" HeaderText="ProviderID" 
                InsertVisible="False" ReadOnly="True" SortExpression="ProviderID" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="SMSEmailAddress" HeaderText="SMSEmailAddress" 
                SortExpression="SMSEmailAddress" />
            <asp:CommandField ShowInsertButton="True" />
        </Fields>
    </asp:DetailsView>
    <asp:LinqDataSource ID="dsProviders" runat="server" ContextTypeName="AnsweringServiceDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="Providers">
    </asp:LinqDataSource>
    <br /><br />
    <prt:ShowFooterGridView ID="gvClientTypes" runat="server" DataSourceID="dsClientTypes" ShowHeaderWhenEmpty="True" ShowFooterWhenEmpty="True" AutoGenerateColumns="False" DataKeyNames="ClientTypeID">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="ClientTypeID" HeaderText="ClientTypeID" InsertVisible="False" ReadOnly="True" SortExpression="ClientTypeID" />
            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
        </Columns>
    </prt:ShowFooterGridView>
    <asp:DetailsView ID="dvClientTypes" runat="server" Height="50px" Width="125px" 
        AutoGenerateRows="False" DataKeyNames="ClientTypeID" 
        DataSourceID="dsClientTypes" DefaultMode="Insert">
        <Fields>
            <asp:BoundField DataField="ClientTypeID" HeaderText="ClientTypeID" 
                InsertVisible="False" ReadOnly="True" SortExpression="ClientTypeID" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:CommandField ShowInsertButton="True" />
        </Fields>
    </asp:DetailsView>
    <asp:LinqDataSource ID="dsClientTypes" runat="server" ContextTypeName="AnsweringServiceDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="ClientTypes">
    </asp:LinqDataSource>
</asp:Content>

